#include "Temp.h"

Temp::Temp():target(DEFAULT_TEMP){}

Temp::~Temp(){}

float Temp::GetRange(){	return target; }

float Temp::GetRangeUpper(){  return target + RANGE; }

float Temp::GetRangeLower(){  return target - RANGE; }

bool Temp::SetTemp(float temp)
{	
	if ((temp < TEMP_MIN) || (TEMP_MAX < temp))  return false;
	target = temp;
	return true;
}
